import QtQuick
import QtQuick.Controls
import CustomizedComponents
import QtQuick.Particles

Item {
    width: 1920
    height: 1080

    FontLoader {
        id: font
        source: "./fonts/字魂江汉手书.ttf"
    }

    // Rectangle{
    //     anchors.fill: parent
    //     color: "white"

    //     Column{
    //         spacing: 20

    //         RichStyleText {
    //             font: font.name
    //             textGradient: Gradient {
    //                 GradientStop { position: 0.0; color: "red" }
    //                 GradientStop { position: 1; color: "blue" }
    //             }
    //         }
    //     }
    // }

    ParticlesEmitter {
        id: emitter
        anchors.fill: parent

        recSize: Qt.vector2d(parent.width / 2, parent.height / 2)
        center: Qt.vector2d(parent.width / 2, parent.height / 2)
    }

    ImageParticle {
        source: "./images/MaterialSymbolsFolderOpenOutline.svg"
        system: emitter.system
        groups: ['particle']
    }
}
